package org.example.order.controller;

import java.util.Arrays;
import java.util.Map;

import org.example.core.utils.R;
import org.example.order.bo.OrderSettingBO;
import org.example.order.vo.OrderSettingVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.example.order.entity.OrderSettingEntity;
import org.example.order.service.OrderSettingService;



/**
 * @author xiaojie_cc
 * @version 1.0
 */
@RestController
@RequestMapping("/oms/backend/order_setting")
public class OrderSettingController {

    @Autowired
    private OrderSettingService orderSettingService;

    /**
     * 信息
     */
    @GetMapping("/detail")
    public R<?> detail(){
        OrderSettingVo vo = orderSettingService.detail();
        return R.ok(vo);
    }

    /**
     * 修改
     */
    @PutMapping("/update")
    public R<?> update(@RequestBody OrderSettingBO orderSettingBO){
        orderSettingService.update(orderSettingBO);
        return R.ok();
    }

}
